Skip to content

fix(debug-log): include app version in the System Info header - #1688

Merged
Chadpiha merged 1 commit into
mainfrom
fix/debug-log-app-version
Aug 26, 2026
Merged

fix(debug-log): include app version in the System Info header#1688
Chadpiha merged 1 commit into
mainfrom
fix/debug-log-app-version

Conversation

@greatcoat

Copy link
Copy Markdown
Contributor

Problem: Customer debug logs record platform, Node, and Electron versions but not the app's own version, so the first triage question — which release produced this log — is unanswerable.

Fix: Add appVersion: app.getVersion() as the first field of the System Info header that debugLogger writes when file logging initializes; regression test covers the header contents.

Root cause

debugLogger.initializeFileLogging() logs a System Info header built only from process-derived fields; app.getVersion() was never included, and nothing else in the log carries the release version.

Tests

  • RED: new test/helpers/debugLogger.test.js (electron mocked via require-cache, per the existing downloadUtils.test.js pattern) fails on current main: The input did not match the regular expression /appVersion/.
  • GREEN: passes with the fix; full suite 2091 tests, 0 fail (170 = known Electron-ABI better-sqlite3 local skips).

Provenance

Contributing defect #4 from the CUS-113 RCA (Titan wiki/areas/engineering/whisper-server-dll-not-found-rca.md): triaging debug-2026-08-17T12-23-22-137Z.log required inferring the app version 1.8.x from Electron 41.10.0. Companion packaging fix: #1687.

🤖 Generated with Claude Code

@Chadpiha Chadpiha self-assigned this Aug 26, 2026
Record the packaged application version in each debug log's System Info header so support can identify the release that produced it. Cover the header contents and keep the current logger Electron test double aligned with the added API.
@Chadpiha
Chadpiha force-pushed the fix/debug-log-app-version branch from ab396af to 1f3a176 Compare August 26, 2026 22:28

@Chadpiha Chadpiha left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Josh! The fix correctly adds the application version to the debug log’s System Info header and keeps the current Electron test doubles aligned with the new API. I verified both startup and runtime debug-logging paths, with 14/14 targeted tests and the full 3,208-test suite completing with 0 failures. No regressions, cross-platform concerns, or API/dependency changes found.

@Chadpiha
Chadpiha merged commit edc98c5 into main Aug 26, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants